#include<iostream>
#include<string.h>
using namespace std;

int main(){
	int i,j,len1,len2;
	int mul;
	int A = -1,B = -1;
	char s1[1005],s2[1005],c;
	if((c = getchar()) != ' '){
	  s1[0] = c;
	  i = 1;
	  while((c = getchar()) != ' ')
	    s1[i++] = c;
	  s1[i] = '\0';
	}
	else
	  s1[0] = '\0';
	i = 0;
	c = getchar();
	while(c !='\n'){
	  s2[i++] = c;
	  c = getchar();
	}
	s2[i] = '\0';
	len1 = strlen(s1);
	for( i = 0; s1[i] != '\0'; i++)
		if(s1[i] < '0' || s1[i] > '9')
			break;
	if(s1[i] == '\0'){
		A += 1;
		for(i = 0; i < len1; i++){
			mul = 1;
			for(j = 0; j < len1 - i - 1; j++ )
				mul *= 10;
			A +=(s1[i] - '0') * mul;
		}
	}
	len2 = strlen(s2);
	for( i = 0; s2[i] != '\0'; i++)
		if(s2[i] < '0' || s2[i] > '9')
			break;
	if(s2[i] == '\0'){
		B += 1;
		for(i = 0; i < len2; i++){
			mul = 1;
			for(j = 0; j < len2 - i - 1; j++ )
				mul *= 10;
			B +=(s2[i] - '0') * mul;
		}
	}
	if(A == 0 || A > 1000)
		A = -1;
	if(B == 0 || B > 1000)
		B = -1;
	if(A != -1 && B != -1)
		cout << A << " + " << B << " = " << A + B;
	else if(A != -1 && B == -1)
		cout << A << " + " << '?' << " = " << '?';
	else if(A == -1 && B == -1)
		cout << '?' << " + " << '?' << " = " << '?';
	else if(A == -1 && B != -1)
		cout << '?' << " + " << B << " = " << '?';
	return 0;
}